package com.tanjun.publicservice.web.orm.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.KeyType;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.tanjun.common.enums.EnableStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 字典表
 * @Table sys_dict
 */
@Table(value ="sys_dict")
@Data
public class SysDict implements Serializable {
    /**
     * 主键 
     */
    @Id(value = "id", keyType = KeyType.Auto)
    private Long id;

    /**
     * 类型编码
     */
    @Column(value = "dict_code")
    private String dictCode;

    /**
     * 类型名称
     */
    @Column(value = "name")
    private String name;

    /**
     * 状态(1:正常;0:禁用)
     */
    @Column(value = "status")
    private EnableStatusEnum status;

    /**
     * 备注
     */
    @Column(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @Column(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @Column(value = "creator")
    private String creator;

    /**
     * 更新时间
     */
    @Column(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    @Column(value = "updater")
    private String updater;

    /**
     * 是否删除(1-删除，0-未删除)
     */
    @Column(value = "deleted")
    private Boolean deleted;

}